package com.crane.oss.sys.bean.request.party;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author bealon
 * @email ccsu123456@qq.com
 * @date 2018年12月28日 19时42分58秒
 */
@Getter
@Setter
@ToString
@ApiModel(description = "新增机构参数")
public class AddSchoolPartyRequest implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "组织机构中文名称", name = "nameCn")
    @NotNull(message = "nameCn不能为空")
    @Size(max = 128, message = "nameCn长度超长")
    private String nameCn;

    @ApiModelProperty(value = "背景图", name = "logo")
    private String logo;

    @ApiModelProperty(value = "直接上级", name = "parentId")
    @NotNull(message = "上级机构不能为空")
    private Long parentId;

    @ApiModelProperty(value = "省", name = "province")
    private String province;

    @ApiModelProperty(value = "市", name = "city")
    private String city;


    @ApiModelProperty(value = "区", name = "area")
    private String area;


    @ApiModelProperty(value = "学校类型 1公办 2民办", name = "schoolType")
    private Integer schoolType;


    @ApiModelProperty(value = "学段 1 小学 2 初中  4 高中 ", name = "schoolPeriod")
    private List<String> schoolPeriod;
    /**
     * 学制
     */
    @ApiModelProperty(value = "学段", name = "schoolSystem")
    private Integer schoolSystem;


    @ApiModelProperty(value = "联系地址", name = "address")
    private String address;


    @ApiModelProperty(value = "联系电话", name = "telephone")
    private String telephone;


    @ApiModelProperty(value = "手机", name = "mobile")
    @NotNull(message = "手机号码不能为空")
    private String mobile;

    @ApiModelProperty(value = "用户名", name = "realName")
    @NotNull(message = "用户名不能为空")
    private String realName;

    @ApiModelProperty(value = "用户名", name = "realNameSource")
    @NotNull(message = "用户名不能为空")
    private String realNameSource;

    @ApiModelProperty(value = "createUserId", name = "创建用户id", hidden = true)
    private Long createUserId;

    @ApiModelProperty(value = "createPartyId", name = "创建用户id", hidden = true)
    private Long createPartyId;
}
